﻿capital = 113

oob = "IRE_1936"
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_naval_oob = IRE_naval_1936
	else = {
		set_naval_oob = "IRE_1936_Naval_Legacy"
	}
}	
set_research_slots = 3
if = {
	limit = {
		has_dlc = "By Blood Alone"
	}
	set_air_oob = "IRE_1936_air_bba"
	set_technology = {
		aa_lmg = 1
		engines_1 = 1
		early_bombs = 1
		aircraft_construction = 1
		iw_small_airframe = 1
		iw_medium_airframe = 1
	}
	else = {
		set_air_oob = "IRE_1936_air_legacy"
		set_technology = {
			early_fighter = 1
		}
	}
}
	
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	fuel_silos = 1
	tech_trucks = 1
	motorised_infantry = 1
	gw_artillery = 1
	armored_car1 = 1
	basic_train = 1
}
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		basic_depth_charges = 1
		early_ship_hull_cruiser = 1
		basic_torpedo = 1
		improved_ship_torpedo_launcher = 1
		early_ship_hull_submarine = 1
		mtg_transport  = 1
		basic_naval_mines = 1
	}
}

if = {
	limit = {
		NOT = { has_dlc = "Man the Guns" }
	}
	set_technology = {
		early_destroyer = 1
		basic_destroyer = 1
		early_light_cruiser = 1
		early_heavy_cruiser = 1
		transport = 1
		early_submarine =1
	}	
}	
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
	}
	else = {
		set_technology = {
			gwtank_chassis = 1
		}
	}
	
}
set_cosmetic_tag = IRE_free_state

add_ideas = {
	IRE_trade_war
	IRE_autonomous_dominion
	IRE_ira_3
}
set_variable = {
	var = IRA_loyalty
	value = 8
}

set_variable = {
	var = IRA_strength
	value = 10
}
create_dynamic_country = {
	    original_tag = IRE
	    set_country_flag = IRE_IRA_revolt_flag
		set_politics = {
			ruling_party = fascism
		}
		set_cosmetic_tag = IRE_IRA
		set_research_slots = 3
	    reserve_dynamic_country = yes
}
ENG = {
	add_opinion_modifier = { target = IRE modifier = embargo }	
}
IRE = {
	add_opinion_modifier = { target = ENG modifier = embargo }	
}	
set_convoys = 10

1939.1.1 = {
	
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = IRE_naval_1939
		else = {
			set_naval_oob = "IRE_1939_Naval_Legacy"
		}
	}	
	if = {
		limit = {
			has_dlc = "By Blood Alone"
		}
		set_air_oob = "IRE_1939_air_bba"
		set_technology = {
			basic_small_airframe = 1
		}
		else = {
			set_air_oob = "IRE_1939_air_legacy"
			set_technology = {
				fighter1 = 1
			}
		}	
	}
	drop_cosmetic_tag = yes

	ENG = {
		remove_opinion_modifier = { target = IRE modifier = embargo }	
	}
	IRE = {
		remove_opinion_modifier = { target = ENG modifier = embargo }	
	}		
	
	remove_ideas = {
		IRE_trade_war
	}	
	
	add_ideas = {
		IRE_MFR1
		IRE_TNTN1
	}	
	add_political_power = 1198
	
	#generic focuses
	complete_national_focus = IRE_end_the_trade_war #March 10 1936	
	complete_national_focus = IRE_prepare_industrial_growth #May 20 1936	
	complete_national_focus =IRE_finna_fail #July 30 1936
	complete_national_focus =IRE_IEAA #October 10 1936
	complete_national_focus =IRE_ARD #October 10 1936	
	complete_national_focus =IRE_MFR #December 20 1936
	complete_national_focus =IRE_IFI #February 30 1937
	complete_national_focus =IRE_TNTN  #May 10 1937	
	complete_national_focus =IRE_ESIC  #July 20 1937
	complete_national_focus =IRE_IRF #September 30 1937	
	complete_national_focus =IRE_revise_the_constitution #December 10 1937
	complete_national_focus =IRE_president_of_eire #February 20 1938	
	complete_national_focus =IRE_negotiate_return_of_treaty_ports #April 30 1938
	complete_national_focus =IRE_the_new_state #July 10 1938
	complete_national_focus =IRE_ISRA#September 20 1938
	complete_national_focus =IRE_ARMYTREE #November 30 1938
	complete_national_focus =IRE_MILITARYINDUSTRY #February 10 1939
	complete_national_focus =IRE_NORMALINDUSTRY #April 20 1939
	complete_national_focus = IRE_INFANTRY#June 30 1939
		
	oob = "IRE_1939"
	set_technology = {
		gw_artillery = 1
		interwar_antiair = 1
		infantry_weapons2 = 1

		#doctrines
		air_superiority = 1
		grand_battle_plan = 1
		trench_warfare = 1
		fleet_in_being = 1
		battlefleet_concentration = 1
		convoy_sailing = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		mechanical_computing = 1
		computing_machine = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		construction1 = 1
		construction2 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
		fuel_refining = 1
		
	}
}

set_politics = {
	ruling_party = democratic
	last_election = "1933.1.24"
	election_frequency = 48
	elections_allowed = yes
}
set_popularities = {
	democratic = 80
	fascism = 17
	communism = 3
}

1939.1.1 = {
	set_politics = {
		ruling_party = democratic
		last_election = "1938.6.17"
		election_frequency = 48
		elections_allowed = yes
	}
}
#order matters - first ideology leader will be pulled for the start - other leaders get put lower down the order
recruit_character = IRE_Éamon_de_valera
recruit_character = IRE_eoin_oduffy
recruit_character = IRE_james_larkin
recruit_character = IRE_frank_macdermot

recruit_character = IRE_richard_mulcahy
recruit_character = IRE_michael_costello
recruit_character = IRE_hugo_macneill
recruit_character = IRE_tom_barry
recruit_character = IRE_jj_oconnel
recruit_character = IRE_dan_mckenna
recruit_character = IRE_tom_maguire
recruit_character = IRE_s_muiris

recruit_character = IRE_p_a_mulcahy
recruit_character = IRE_liam_archer
recruit_character = IRE_a_t_lawlor
recruit_character = IRE_oscar_traynor
recruit_character = IRE_frank_fahy
recruit_character = IRE_h_t_green
recruit_character = IRE_michael_brennan
recruit_character = IRE_john_byrne

recruit_character = IRE_sean_lemass
recruit_character = IRE_douglas_hyde
recruit_character = IRE_sean_ceallaigh
recruit_character = IRE_j_c_mcquaid
recruit_character = IRE_william_norton
recruit_character = IRE_WT_Cosgrave
recruit_character = IRE_peadar_o_donnell
recruit_character = IRE_gearoid_o_cuinneagain
recruit_character = IRE_henry_stuart
recruit_character = IRE_john_maffey
recruit_character = IRE_leopoldo_o_donnel 
recruit_character = IRE_jorje_o_neill 
recruit_character = IRE_Oskar_von_preussen 
recruit_character = IRE_edward_viii 
recruit_character = IRE_george_vi 
recruit_character = IRE_elisabeth_ii  




### ship variants

if = {
	limit = {
		NOT = { has_dlc = "Man the Guns" }
	}
	# Destroyers #
	create_equipment_variant = {
		name = "S113 Class"
		type = destroyer_1
		parent_version = 0
		upgrades = {
			ship_torpedo_upgrade = 1
			destroyer_engine_upgrade = 3
			ship_ASW_upgrade = 2
			ship_anti_air_upgrade = 1
		}
	}
}

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	create_equipment_variant = {
		name = "S113 Class"
		type = ship_hull_light_1
		name_group = IRE_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_2
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_2
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_depth_charge_1
		}
	}	
}	
if = {
	limit  = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "Vickers 6 ton A"
		type = light_tank_chassis_0
		parent_version = 0
		modules = {
			main_armament_slot = tank_heavy_machine_gun
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
			special_type_slot_1 = secondary_turret_hmg
		}
		upgrades = {
			tank_nsb_armor_upgrade = 3
			tank_nsb_engine_upgrade = 2
		}
		icon = "GFX_ENG_light_BAB_camo"
	}
	create_equipment_variant = {
		name = "Medium Mk. II"
		type = medium_tank_chassis_0
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_medium_three_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
		}
		upgrades = {
			tank_nsb_armor_upgrade = 1
			tank_nsb_engine_upgrade = 2
		}
		icon = "GFX_ENG_basic_light_tank_medium"
	}
}
if = {
	limit = {
		has_dlc = "By Blood Alone"
	}

	create_equipment_variant = {
		name = "Gloster Gladiator" 
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_4x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}
}